package com.wnx.job.common.mapstruct;


import com.wnx.job.modules.ums.dto.DictParam;
import com.wnx.job.modules.ums.model.UmsDict;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author wangnaixing
 */
@Mapper
public interface DictMapper {

    DictMapper INSTANCE = Mappers.getMapper(DictMapper.class);

    UmsDict toPojo(DictParam dictParam);

    List<DictParam> toDtoList(List<UmsDict> dictList);
}
